package com.xyzwps.ewa.modules.auth.session

object Sessions {

    private val sessionStorage: SessionStorage<Session> = RdbSessionStorage

    fun invalidate(id: String) = sessionStorage.invalidate(id)

    fun save(session: Session) = sessionStorage.set(session.sessionId, session)

    fun get(id: String): Session? = sessionStorage.get(id)
}


